public class TestStudent3 {
    public static void main(String[] args){
        Student s=new Student("龙龙",38,99.0);
        System.out.println(s.name);
    }
}
class Student{
    //属性
    String name;
    int age;
    double score;
    //构造方法
    public Student(){}
    public Student(String name,int age){
        this.name=name;
        this.age=age;
    }
    public Student(String name,int age,double score){
        this(name,age);
        this.score=score;
    }
}

